package org.jsets.fastboot.persistent.metadata;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;

@Data
public class PersistentOption {

	private boolean fillEnable;
	private boolean bindEnable;
	private boolean encryptEnable;
	private boolean desensitizeEnable;
	private boolean auditable;
	
	private List<FieldFillOption> fieldFills = new ArrayList<FieldFillOption>();
	private List<FieldBindOption> fieldBinds = new ArrayList<FieldBindOption>();
	private List<FieldEncryptOption> fieldEncrypts = new ArrayList<FieldEncryptOption>();
	private List<FieldDesensitizeOption> fieldDesensitizeOptions = new ArrayList<FieldDesensitizeOption>();

	public void addFieldFillOption(FieldFillOption fieldFill) {
		this.fieldFills.add(fieldFill);
	}

	public void addFieldBindOption(FieldBindOption fieldBind) {
		this.fieldBinds.add(fieldBind);
	}

	public void addFieldEncryptOption(FieldEncryptOption fieldEncrypt) {
		this.fieldEncrypts.add(fieldEncrypt);
	}

	public void addFieldDesensitizeOption(FieldDesensitizeOption fieldDesensitize) {
		this.fieldDesensitizeOptions.add(fieldDesensitize);
	}
}